package com.kevin.serial;

/**
 * 对象序列化与反序列化接口
 */
public interface ISerializer {


    //获取序列化类型code
    byte getSerialType();


    byte[] serialize(Object t);


    <T>T deSerialize(byte[] obj, Class<T> clazz);

}
